<?php
/*
 * Created on Dec 29, 2011
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 class Blog extends AppModel {
 	var $name = 'Blog';
 	var $hasOne = array(
		'User' => 
		array(
			'className' => 'User',
			'foreignKey' => ''
		)
	);
	
	var $hasMany = 'Comment';
	
	var $validate = array(
		'subject' => 
			array('rule' => 'notEmpty',
				  'message' => 'Make a Subject Title!'),
		'body' =>
			array('rule' => 'notEmpty',
				  'message' => 'Fill the Blog body!')
	);
 }
?>
